package com.pkuse.bjousystem.entity.school;

import com.pkuse.bjousystem.AuthEntity;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ZwAuthEntity implements AuthEntity {

    @Value("${zwmc}")
    private String zwmc;

    @Value("${zwdm}")
    private String zwdm;

    @Override
    public String getAuthUsername() {
        return zwdm;
    }

    @Override
    public String getAuthPassword() {
        return zwmc;
    }

    @Override
    public AuthType getAuthType() {
        return AuthType.Zw;
    }

    @Override
    public String toString() {
        return "ZwAuthEntity{" +
                "zwmc='" + zwmc + '\'' +
                ", zwdm='" + zwdm + '\'' +
                '}';
    }
}
